<template>
    <div class="ivu-pt-8 ivu-mb-16">
        <Form inline>
            <Input v-width="260" placeholder="请输入设备ID,备注名" />
            <!-- <Select v-width="150" clearable class="ivu-ml-16" placeholder="请选择项目">
                <Option v-for="item in projectList" :value="item.value" :key="item.value">{{item.label}}</Option>
            </Select>-->
            <Select v-width="150" clearable class="ivu-ml-16" placeholder="请选择状态">
                <Option v-for="item in statusList" :value="item.value" :key="item.value">{{item.label}}</Option>
            </Select>
            <Button type="primary" class="ivu-fr" @click="handleAdd">新增</Button>
        </Form>
    </div>
</template>
<script>
export default {
    data() {
        return {
            projectList: [
                {
                    value: '南通',
                    label: '南通'
                },
                {
                    value: '华研',
                    label: '华研'
                },
                {
                    value: '北大',
                    label: '北大'
                }
            ],
            statusList: [
                {
                    value: '正常',
                    label: '正常'
                },
                {
                    value: '停用',
                    label: '停用'
                }
            ]
        }
    },
    methods: {
        handleAdd() {
            this.$emit('childFn', this.handleCreate)
            this.logs(this.modalEdit)
        }
    }
}
</script>